﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Resto.CostControl.Core.Cache;
using Resto.CostControl.Common.Consts;

namespace Resto.CostControl.Core.Query.SystemModule.ViewObject
{
    /// <summary>
    /// 字典DTO
    /// </summary>
    [Serializable]
    public class DictionaryVO
    {

        #region 基本属性

        public string ID { get; set; }

        /// <summary>
        /// 字典代码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 字典名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 字典类型代码
        /// </summary>
        public string TypeCode { get; set; }

        /// <summary>
        /// 字典类型的名称
        /// </summary>
        public string TypeName
        {
            get
            {
                return DictionaryVOArrayCache.GetDicNameByCode(DictionaryTypeConsts.System_DictionaryType_Code, TypeCode);
            }
        }

        /// <summary>
        /// 排序号
        /// </summary>
        public int Sequence { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 拼音首码
        /// </summary>
        public string PingYinCode { get; set; }

        #endregion

        
    }
}
